
package DataProvider;

import java.util.Random;

/**
 *
 * @author Admin
 */
public class RandomSorted implements DataProvider<Integer> {

    public Integer[] getData(int length) {
        if (length <= 0) {
            return null;
        }
        Integer[] temp = new Integer[length];
        Random r = new Random();
        for (int i = 0; i < length; i++) {
            temp[i] = r.nextInt(length);
        }
        return temp;
    }
}